package
{
	import flash.display.Shape;

	public class Blot extends Shape
	{
		private var _radius:Number;
		private var _color:uint;
		
		public function Blot(radius:Number = 5, color:uint = 0xFFFFFF)
		{
			_radius = radius;
			_color = color;			
			draw();
		}
		public function set color(value:Number):void
		{
			_color = value;
			draw();
		}
		private function draw():void
		{
			graphics.clear();
			
			graphics.beginFill( _color );
			graphics.drawCircle(0, 0, _radius/2);
			graphics.endFill();
			
			graphics.beginFill( _color );
			graphics.drawEllipse(-_radius/4, -_radius, _radius/2, _radius/2 );
			graphics.endFill();
			
			graphics.beginFill( _color );
			graphics.drawEllipse(-_radius/4, 0, _radius/2, _radius/2 );
			graphics.endFill();
			
			graphics.beginFill( _color );
			graphics.drawEllipse(-_radius, -_radius/4, _radius/2, _radius/4 );
			graphics.endFill();
			
			graphics.beginFill( _color );
			graphics.drawEllipse(0, -_radius/4, _radius/2, _radius/4 );
			graphics.endFill();
			
			graphics.endFill();
		}
	}
}
